export const state = () => ({
  expertName: '',
  expertId: null,
  followIndex: 1000,
  recruitScrollY: 0,
  recruitScrollY1: 0,
  recruitScrollY2: 0,
  detailds: 0,
  mallParam: '',
  urlType: '',
  vipShare: false,
  presUrl: '',
  xxNum: 3,
  schoolLevel: '',
  schoolProvince: '',
  schoolDivision: ''
})
export const mutations = {
  changeSchoolLevel(state, schoolLevel) {
    state.schoolLevel = schoolLevel
  },
  changeSchoolProvince(state, schoolProvince) {
    state.schoolProvince = schoolProvince
  },
  changeSchoolDivisionl(state, schoolDivision) {
    state.schoolDivision = schoolDivision
  },
  changeUrl(state, presUrl) {
    state.presUrl = presUrl
  },
  changexxNum(state, xxNum) {
    state.xxNum = xxNum
  },
  hasvipShare(state, vipShare) {
    state.vipShare = vipShare
  },
  changeexpertId(state, expertId) {
    state.expertId = expertId
  },
  changeexpertName(state, expertName) {
    state.expertName = expertName
  },
  changeurlType(state, urlType) {
    state.urlType = urlType
  },
  changeParam(state, mallParam) {
    state.mallParam = mallParam
  },
  changeDetailId(state, detailds) {
    state.detailds = detailds
  },
  tab(state, index) {
    state.tabIndex = index
  },
  changeFollowIndex(state, followIndex) {
    state.followIndex = followIndex
  },
  changeRecruitScrollY(state, recruitScrollY) {
    state.recruitScrollY = recruitScrollY
  },
  changeRecruitScrollY1(state, recruitScrollY1) {
    state.recruitScrollY1 = recruitScrollY1
  },
  changeRecruitScrollY2(state, recruitScrollY2) {
    state.recruitScrollY2 = recruitScrollY2
  }
}

export const getters = {
  schoolLevel() {
    return states.schoolLevel
  },
  schoolProvince() {
    return states.schoolProvince
  },
  schoolDivision() {
    return states.schoolDivision
  },
  presUrl(states) {
    return states.presUrl
  },
  xxNum(states) {
    return states.xxNum
  },
  vipShare(states) {
    return states.vipShare
  },
  expertId(states) {
    return states.expertId
  },
  expertName(states) {
    return states.expertName
  },
  urlType(states) {
    return states.urlType
  },
  mallParam(states) {
    return states.mallParam
  },
  detailds(states) {
    return states.detailds
  },
  recruitScrollY(states) {
    return states.recruitScrollY
  },
  recruitScrollY1(states) {
    return states.recruitScrollY1
  },
  recruitScrollY2(states) {
    return states.recruitScrollY2
  },
  followIndex(states) {
    return states.followIndex
  }
}
